class LiveStatisticsEntity {
  List<StatisticsDetail>? data;
  String? liveTime;

  LiveStatisticsEntity({this.data, this.liveTime});

  LiveStatisticsEntity.fromJson(Map<String, dynamic> json) {
    if (json['showValue'] != null) {
      data = <StatisticsDetail>[];
      json['showValue'].forEach((v) {
        data!.add(new StatisticsDetail.fromJson(v));
      });
    }
    liveTime = json['liveTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['showValue'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['liveTime'] = this.liveTime;
    return data;
  }
}

class StatisticsDetail {
  String? title;
  List<StatisticsData>? content;

  StatisticsDetail({this.title, this.content});

  StatisticsDetail.fromJson(Map<String, dynamic> json) {
    title = json['title'];
    if (json['content'] != null) {
      content = <StatisticsData>[];
      json['content'].forEach((v) {
        content!.add(new StatisticsData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    if (this.content != null) {
      data['content'] = this.content!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class StatisticsData {
  String? name;
  String? value;

  StatisticsData({this.name, this.value});

  StatisticsData.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    value = json['value'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['name'] = this.name;
    data['value'] = this.value;
    return data;
  }
}